home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1995 June
/
MacFormat 25.iso
/
Shareware City
/
Games
/
outland-minimum-installer
/
Outland Minimum Installer
/
Outland Minimum Installer
/
Hayes Ultra 144
< prev
next >
Wrap
Text File
|
1992-07-29
|
4KB
|
227 lines
! "Hayes Ultra 144 - 11/08/91"
! Modified 7/26/92
!
! VERSION 1.2
!
@ORIGINATE
@ANSWER
!
@LABEL 1
!
! Open ports at 19.2 Kbps
!
serreset 19200, 0, 8, 1
!
! first recall the factory configuration
!
matchclr
settries 0
matchstr 1 3 "OK\13\10"
@LABEL 2
write "AT&F\13"
matchread 30
inctries
iftries 2 59
jump 2
!
! Next, Set dialing & carrier time: Echo off, enable RTS/CTS flow control
HSReset 0 1 0 0 0 0
@LABEL 3
matchstr 1 4 "OK\13\10"
write "ATS9=2S7=60S10=100S36=3E0&K3\13"
matchread 30
jump 59
!
! Next, turn off error control and DTR, use ASB, show DCE connect speeds
!
!
@LABEL 4
matchstr 1 5 "OK\13\10"
matchstr 2 5 "ERROR\13\10"
write "AT&D0&Q6W2\13"
matchread 30
!
! If speaker on flag is true, jump to label 8. Else turn off the speaker
@LABEL 5
matchclr
ifstr 2 8 "1"
matchstr 1 8 "OK\13\10"
write "ATM0\13"
matchread 30
jump 59
!
! The modem is ready. So enable answering, or originate a call
!
@LABEL 8
ifANSWER 30
note "Dialing ^1" 3
write "ATS0=0DT^1\13"
!
@LABEL 9
matchstr 1 11 "CONNECT 1200\13\10"
matchstr 2 12 "CONNECT 2400\13\10"
matchstr 3 13 "CONNECT 4800\13\10"
matchstr 4 14 "CONNECT 7200\13\10"
matchstr 5 15 "CONNECT 9600\13\10"
matchstr 6 16 "CONNECT 12000\13\10"
matchstr 7 17 "CONNECT 14400\13\10"
matchstr 8 50 "NO CARRIER\13\10"
matchstr 9 50 "ERROR\13\10"
matchstr 10 52 "NO DIALTONE\13\10"
matchstr 11 53 "BUSY\13\10"
matchstr 12 54 "NO ANSWER\13\10"
matchread 999
jump 59
!
! NOTE: uses CommunicatingAt and NOT SERreset. Modem is ALWAYS set at 19200 while
! DCE speeds are lower
!
@LABEL 11
note "Communicating at 1200 bps." 2
CommunicatingAt 1200
jump 18
!
@LABEL 12
note "Communicating at 2400 bps." 2
CommunicatingAt 2400
jump 18
!
@LABEL 13
note "Communicating at 4800 bps." 2
CommunicatingAt 4800
jump 18
!
@LABEL 14
note "Communicating at 7200 bps." 2
CommunicatingAt 7200
jump 18
!
@LABEL 15
note "Communicating at 9600 bps." 2
CommunicatingAt 9600
jump 18
!
@LABEL 16
note "Communicating at 12000 bps." 2
CommunicatingAt 12000
jump 18
!
@LABEL 17
note "Communicating at 14400 bps." 2
CommunicatingAt 14400
!
@LABEL 18
!
! Make sure ARA is set for hardware handshaking
!
HSReset 0 1 0 0 0 0
ifANSWER 19
pause 30
@LABEL 19
exit 0
!
! @ANSWER
! Set up modem to answer on second ring, connect to V-9600's at highest speed
! note that error correction has to be on here. If this causes and problems
! and you are not using a V-Series 9600, then take out &Q5.
!
! When connection is made with EC on, modem will fall back to ASB by default
! when the connection does not use EC.
@LABEL 30
write "AT&Q5S0=2\13"
matchstr 1 31 "OK\13\10"
matchread 30
jump 59
!
@LABEL 31
matchstr 1 32 "RING\13\10"
matchstr 2 11 "CONNECT 1200\13\10"
matchstr 3 12 "CONNECT 2400\13\10"
matchstr 4 13 "CONNECT 4800\13\10"
matchstr 5 14 "CONNECT 7200\13\10"
matchstr 6 15 "CONNECT 9600\13\10"
matchstr 7 16 "CONNECT 12000\13\10"
matchstr 8 17 "CONNECT 14400\13\10"
matchstr 9 50 "NO CARRIER\13\10"
matchstr 10 50 "ERROR\13\10"
matchstr 11 52 "NO DIALTONE\13\10"
matchstr 12 53 "BUSY\13\10"
matchstr 13 54 "NO ANSWER\13\10"
matchread 700
jump 31
!
@LABEL 32
userhook 1
note "Answering phone…" 2
jump 31
!
! 50: error messages
!
@LABEL 50
exit -6021
!
@LABEL 52
exit -6020
!
@LABEL 53
exit -6022
!
@LABEL 54
exit -6023
!
@LABEL 59
exit -6019
!
! Hang up the modem
!
@HANGUP
@LABEL 60
settries 0
@LABEL 61
write "ATH0\13"
matchclr
matchstr 1 64 "OK\13\10"
matchstr 2 63 "NO CARRIER\13\10"
matchstr 3 64 "ERROR\13\10"
matchread 15
inctries
iftries 3 64
! no response, try escape sequence
write "+++"
pause 300
matchclr
matchstr 1 62 "OK\13\10"
matchread 18
! No response from modem, use reset command
write "ATZ\13\10"
pause 300
jump 61
!
@LABEL 62
matchclr
matchstr 1 64 "OK\13\10"
matchstr 2 63 "NO CARRIER\13\10"
write "ATH0\13"
matchread 50
jump 61
!
@LABEL 63
pause 45
flush
!
! Recall the factory settings
!
@LABEL 64
matchclr
matchstr 1 65 "OK\13\10"
write "AT&F\13"
matchread 30
!
@LABEL 65
matchstr 1 66 "OK\13\10"
write "ATS0=0\13"
matchread 30
!
@LABEL 66
exit 0